﻿#ifndef LOADDIALOG_H
#define LOADDIALOG_H

#include <QDialog>
#include "qtlottiewidget.h"

namespace Ui {
class LoadDialog;
}

class LoadDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LoadDialog(QWidget *parent = nullptr);
    ~LoadDialog();
    void setLoadMode(bool fileMode = true);
    QtLottieWidget* m_lottieWidget{};
    QString m_lottieName;
private slots:
    void on_radioButton_file_clicked();
    void on_radioButton_json_clicked();
    void on_pushButton_brower_clicked();
    void on_pushButton_ok_clicked();
    void on_pushButton_cancel_clicked();
private:
    Ui::LoadDialog *ui;
    bool m_isFileMode = true;
};

#endif // LOADDIALOG_H
